import {
  httpGet,
  httpPost
} from '../utils/http'
export const register = (username, password, repassword) => {
  const data = {username,password,repassword}
  return httpPost('/user/register', data)
}
export const signIn=(username, password)=>{
const data ={username, password}
return httpPost('/user/login',data)
}
export const signOut=()=>{
  return httpGet('/user/logout/json')
}